cmake_minimum_required(VERSION 3.12)

project(FTPServer)

set(CMAKE_CXX_STANDARD 17)

find_package(spdlog REQUIRED)
find_package(GTest REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
include_directories(
    ${PROJECT_SOURCE_DIR}/include 
)
add_executable(ftpserver
    src/main.cpp
    src/Session.cpp    
    src/DataChannel.cpp
    src/FTPServer.cpp
    src/UserAuth.cpp
    src/CommandHandler.cpp
)

target_link_libraries(ftpserver
    PRIVATE
    spdlog::spdlog
    Boost::boost 
    Boost::system
    pthread #Asio需要
)

#测试部分
# add_subdirectory(test
#     ServerTest.cpp
# )
